package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class RefreshBetEvent
		extends RefreshEvent<RefreshEventHandler>
{

	public static GwtEvent.Type<RefreshEventHandler>	TYPE	= new GwtEvent.Type<RefreshEventHandler>();

	private String										id;

	@Override
	public GwtEvent.Type<RefreshEventHandler> getAssociatedType()
	{
		return TYPE;
	}

	public RefreshBetEvent(String id)
	{
		this.id = id;
	}

	@Override
	protected void dispatch(RefreshEventHandler handler)
	{
		handler.onRefresh(id);
	}

}
